package com.platform.oss.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author LWB
 * @since 2022-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Oss对象", description="")
public class Oss implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "文件id")
    private Long id;

    @ApiModelProperty(value = "文件名")
    private String filename;

    @ApiModelProperty(value = "文件上传时间")
    @TableField(fill = FieldFill.INSERT)
    private Date filecreate;

    @ApiModelProperty(value = "文件修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date filemodified;

    @ApiModelProperty(value = "文件上传者")
    private String uploader;

    @ApiModelProperty(value = "文件管理员")
    private String manager;


    public Oss(String filename, String uploader, String manager) {
        this.filename = filename;
        this.uploader = uploader;
        this.manager = manager;

    }
}

